package com.itany.mp.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 石小俊
 */
@Data
@TableName("t_student")
public class Student {
    @TableId(value = "student_id",type = IdType.AUTO)
    private Integer id;
//    @TableField(value = "student_name",select = false)
    @TableField(value = "student_name")
    private String name;
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.ALWAYS)
    private Integer age;
    @TableField(insertStrategy = FieldStrategy.ALWAYS,updateStrategy = FieldStrategy.NEVER)
    private String gender;
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
//    @TableField(fill = FieldFill.INSERT_UPDATE)
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
